package org.vacoor.ticket;

public interface Constant {
	//POST 查询所有经过列车信息
	String QUERY_TRAIN_URL = "https://dynamic.12306.cn/otsweb/order/querySingleAction.do?method=queryststrainall";
	
	//GET 根据列车编号(不是车次)查询详细停靠信息 
	/*
	https://dynamic.12306.cn/otsweb/order/querySingleAction.do?method=queryaTrainStopTimeByTrainNo
	 */
	
	//GET 登录验证码
	String LOGIN_AUTH_URL = "https://dynamic.12306.cn/otsweb/passCodeAction.do?rand=sjrand";
	
	//GET 登录随机码
	String LOGIN_RAND_CODE_URL = "https://dynamic.12306.cn/otsweb/loginAction.do?method=loginAysnSuggest";
	
	//POST 登录
	String LOGIN_URL = "https://dynamic.12306.cn/otsweb/loginAction.do?method=login";
	
	//POST 查询车票
	String QUERY_TICKET_URL = "https://dynamic.12306.cn/otsweb/order/querySingleAction.do?method=queryLeftTicket";
	
	//POST 预订车票,获取订单,这个会返回 302 Moved Temporarily到下面的ORDER_REDIRECT,程序中已经解决重定向
	String ORDER_URL = "https://dynamic.12306.cn/otsweb/order/querySingleAction.do?method=submutOrderRequest";
	String ORDER_REDIRECT = "https://dynamic.12306.cn/otsweb/order/confirmPassengerAction.do?method=init";
	
	//GET 获取联系人
	String PASSENGER_URL = "https://dynamic.12306.cn/otsweb/order/confirmPassengerAction.do?method=getpassengerJson";
	
	//GET 订单验证码
	String ORDER_AUTH_URL = "https://dynamic.12306.cn/otsweb/passCodeAction.do?rand=randp";
	
	//POST 检测订单
	String ORDER_CHECK_URL = "https://dynamic.12306.cn/otsweb/order/confirmPassengerAction.do?method=checkOrderInfo";
	
	//GET 获取队列信息(前面有多少人订购,还剩下多少)GET
	 String ORDER_QUENE_URL = "https://dynamic.12306.cn/otsweb/order/confirmPassengerAction.do?method=getQueueCount";
	
	 //POST 确认提交,单程
	String ORDER_CONFIRM_URL = "https://dynamic.12306.cn/otsweb/order/confirmPassengerAction.do?method=confirmSingleForQueueOrder";
	
	//GET 提交成功后获取订单处理信息(等待时间)
	//tourFlag dc单程 wc往程 fc返程 gc改签 
	String ORDER_WAIT_URL = "https://dynamic.12306.cn/otsweb/order/myOrderAction.do?method=getOrderWaitTime&tourFlag=dc";
	
	//GET 查询没有完成的订单
	String ORDER_NO_COMPLETE = "https://dynamic.12306.cn/otsweb/order/myOrderAction.do?method=queryMyOrderNotComplete&leftmenu=Y";
	
	String ENCODING = "UTF-8";
}
